package com.example.server.mapper;

import com.example.server.pojo.Interstway;
import com.example.server.pojo.Localtion;
import com.example.server.pojo.Production;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ProductionMapper {
    List<Interstway> getInterstway();
    void createproduction(String p_id, String p_name, String p_createid, Date p_createtime, String p_info, int p_minyear,int p_maxyear,int p_limitmoney, String p_interstway);
    Production getprodunctionbyId(String p_id);
    List<Production> getAllproduction();
    void setlocaltion(String p_id,String localinfo);
    void updateproduction(String p_id, String p_name,Date p_updatetime, String p_info, int p_minyear,int p_maxyear,int p_limitmoney, String p_interstway);
    void deleteproduction(String p_id);
    List<Localtion> getlocaltion();
    void locklimit(String p_id,int lockedlimit);
    void releaselimit(String p_id,int rlimit);
    void addlimit(String p_id,int alimit);
}
